package com.sericefeign.web;


import com.sericefeign.serviceRemote.SpeakService;
import com.spring4all.swagger.EnableSwagger2Doc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@EnableSwagger2Doc
@RestController
public class SpeakController {

    @Autowired
    SpeakService speakService;
    @RequestMapping(value = "/hi",method = RequestMethod.GET)
    public String sayHi(@RequestParam String name){
        return speakService.speakFromClient(name);
    }
}
